package IOStream.CharSet;

import java.io.FileInputStream;
import java.io.IOException;

/**
 * ClassName:IOStream006
 * Package:IOStream.IOStreamDome
 * Description:
 *
 * @Author:ZhangXin
 * @Create2023/2/28-21:46
 * @Version:v1.0
 */
public class CharSet001 {
    /*字节流读取中文会出现乱码*/
    public static void main(String[] args) throws IOException {
        FileInputStream fis = new FileInputStream("E:\\aaa\\c.txt");
        int len;
        while ((len = fis.read()) != -1) {
            System.out.print((char) len);
        }
        fis.close();
    }
}
